import {payContract} from '@/utils/config'
// 支付合约
const payAbi = {
    Contract:payContract,
	contractAbi: [
		{
			"inputs": [
				{
					"internalType": "address",
					"name": "shopkeeper",
					"type": "address"
				},
				{
					"internalType": "uint128",
					"name": "amount",
					"type": "uint128"
				}
			],
			"name": "pay",
			"outputs": [],
			"stateMutability": "nonpayable",
			"type": "function"
		},
		{
			"inputs": [
				{
					"internalType": "address",
					"name": "consumerAddress",
					"type": "address"
				},
				{
					"internalType": "address",
					"name": "shopkeeper",
					"type": "address"
				},
				{
					"internalType": "uint128",
					"name": "amount",
					"type": "uint128"
				}
			],
			"name": "pay",
			"outputs": [],
			"stateMutability": "nonpayable",
			"type": "function"
		},
		{
			"inputs": [
				{
					"internalType": "uint256",
					"name": "i",
					"type": "uint256"
				},
				{
					"internalType": "uint128",
					"name": "m",
					"type": "uint128"
				},
				{
					"internalType": "uint128",
					"name": "newR",
					"type": "uint128"
				}
			],
			"name": "setRefRate",
			"outputs": [],
			"stateMutability": "nonpayable",
			"type": "function"
		},
		{
			"inputs": [
				{
					"internalType": "address",
					"name": "_vidPass",
					"type": "address"
				}
			],
			"name": "setVidPass",
			"outputs": [],
			"stateMutability": "nonpayable",
			"type": "function"
		},
		{
			"inputs": [
				{
					"internalType": "address",
					"name": "newOwner",
					"type": "address"
				}
			],
			"name": "transferOwnership",
			"outputs": [],
			"stateMutability": "nonpayable",
			"type": "function"
		},
		{
			"inputs": [
				{
					"internalType": "uint128",
					"name": "_amount",
					"type": "uint128"
				},
				{
					"internalType": "address",
					"name": "_receive",
					"type": "address"
				}
			],
			"name": "transferStake",
			"outputs": [],
			"stateMutability": "nonpayable",
			"type": "function"
		},
		{
			"inputs": [],
			"stateMutability": "nonpayable",
			"type": "constructor"
		},
		{
			"inputs": [],
			"name": "withdraw",
			"outputs": [],
			"stateMutability": "nonpayable",
			"type": "function"
		},
		{
			"inputs": [],
			"name": "_decayTimes",
			"outputs": [
				{
					"internalType": "uint256",
					"name": "",
					"type": "uint256"
				}
			],
			"stateMutability": "view",
			"type": "function"
		},
		{
			"inputs": [
				{
					"internalType": "uint256",
					"name": "_number",
					"type": "uint256"
				}
			],
			"name": "attenuation",
			"outputs": [
				{
					"internalType": "uint256",
					"name": "",
					"type": "uint256"
				}
			],
			"stateMutability": "view",
			"type": "function"
		},
		{
			"inputs": [],
			"name": "calDayReleaseRate",
			"outputs": [
				{
					"internalType": "uint128",
					"name": "",
					"type": "uint128"
				}
			],
			"stateMutability": "view",
			"type": "function"
		},
		{
			"inputs": [],
			"name": "contractInfo",
			"outputs": [
				{
					"internalType": "uint256",
					"name": "",
					"type": "uint256"
				},
				{
					"internalType": "uint256",
					"name": "",
					"type": "uint256"
				},
				{
					"internalType": "uint256",
					"name": "",
					"type": "uint256"
				},
				{
					"internalType": "uint128",
					"name": "",
					"type": "uint128"
				}
			],
			"stateMutability": "view",
			"type": "function"
		},
		{
			"inputs": [
				{
					"internalType": "uint128",
					"name": "intervalSeconds",
					"type": "uint128"
				},
				{
					"internalType": "uint128",
					"name": "stakeAmount",
					"type": "uint128"
				},
				{
					"internalType": "uint128",
					"name": "dayReleaseRate",
					"type": "uint128"
				}
			],
			"name": "getReleaseAmount",
			"outputs": [
				{
					"internalType": "uint128",
					"name": "",
					"type": "uint128"
				}
			],
			"stateMutability": "pure",
			"type": "function"
		},
		{
			"inputs": [
				{
					"internalType": "address",
					"name": "addr",
					"type": "address"
				}
			],
			"name": "isUserExists",
			"outputs": [
				{
					"internalType": "bool",
					"name": "",
					"type": "bool"
				}
			],
			"stateMutability": "view",
			"type": "function"
		},
		{
			"inputs": [],
			"name": "owner",
			"outputs": [
				{
					"internalType": "address",
					"name": "",
					"type": "address"
				}
			],
			"stateMutability": "view",
			"type": "function"
		},
		{
			"inputs": [
				{
					"internalType": "uint256",
					"name": "start",
					"type": "uint256"
				},
				{
					"internalType": "uint256",
					"name": "end",
					"type": "uint256"
				},
				{
					"internalType": "address",
					"name": "addr",
					"type": "address"
				}
			],
			"name": "queryExpensesRecord",
			"outputs": [
				{
					"components": [
						{
							"internalType": "address",
							"name": "shop",
							"type": "address"
						},
						{
							"internalType": "address",
							"name": "from",
							"type": "address"
						},
						{
							"internalType": "uint256",
							"name": "recordId",
							"type": "uint256"
						},
						{
							"internalType": "uint256",
							"name": "payAmount",
							"type": "uint256"
						},
						{
							"internalType": "uint256",
							"name": "shopAmount",
							"type": "uint256"
						},
						{
							"internalType": "uint256",
							"name": "time",
							"type": "uint256"
						}
					],
					"internalType": "struct MetaVVds.ExpensesRecord[]",
					"name": "",
					"type": "tuple[]"
				}
			],
			"stateMutability": "view",
			"type": "function"
		},
		{
			"inputs": [
				{
					"internalType": "uint256",
					"name": "_recordId",
					"type": "uint256"
				}
			],
			"name": "queryExpensesRecordById",
			"outputs": [
				{
					"components": [
						{
							"internalType": "address",
							"name": "shop",
							"type": "address"
						},
						{
							"internalType": "address",
							"name": "from",
							"type": "address"
						},
						{
							"internalType": "uint256",
							"name": "recordId",
							"type": "uint256"
						},
						{
							"internalType": "uint256",
							"name": "payAmount",
							"type": "uint256"
						},
						{
							"internalType": "uint256",
							"name": "shopAmount",
							"type": "uint256"
						},
						{
							"internalType": "uint256",
							"name": "time",
							"type": "uint256"
						}
					],
					"internalType": "struct MetaVVds.ExpensesRecord",
					"name": "",
					"type": "tuple"
				}
			],
			"stateMutability": "view",
			"type": "function"
		},
		{
			"inputs": [
				{
					"internalType": "uint256",
					"name": "start",
					"type": "uint256"
				},
				{
					"internalType": "uint256",
					"name": "end",
					"type": "uint256"
				},
				{
					"internalType": "address",
					"name": "addr",
					"type": "address"
				}
			],
			"name": "queryTransferRecord",
			"outputs": [
				{
					"components": [
						{
							"internalType": "address",
							"name": "from",
							"type": "address"
						},
						{
							"internalType": "address",
							"name": "to",
							"type": "address"
						},
						{
							"internalType": "uint256",
							"name": "recordId",
							"type": "uint256"
						},
						{
							"internalType": "uint256",
							"name": "number",
							"type": "uint256"
						},
						{
							"internalType": "uint256",
							"name": "time",
							"type": "uint256"
						},
						{
							"internalType": "uint256",
							"name": "fee",
							"type": "uint256"
						}
					],
					"internalType": "struct MetaVVds.TransferRecord[]",
					"name": "",
					"type": "tuple[]"
				}
			],
			"stateMutability": "view",
			"type": "function"
		},
		{
			"inputs": [
				{
					"internalType": "uint256",
					"name": "",
					"type": "uint256"
				}
			],
			"name": "refRewardRates",
			"outputs": [
				{
					"internalType": "uint128",
					"name": "minAmount",
					"type": "uint128"
				},
				{
					"internalType": "uint128",
					"name": "refRewardRate",
					"type": "uint128"
				}
			],
			"stateMutability": "view",
			"type": "function"
		},
		{
			"inputs": [],
			"name": "totalPayIn",
			"outputs": [
				{
					"internalType": "uint256",
					"name": "",
					"type": "uint256"
				}
			],
			"stateMutability": "view",
			"type": "function"
		},
		{
			"inputs": [],
			"name": "totalPoint",
			"outputs": [
				{
					"internalType": "uint256",
					"name": "",
					"type": "uint256"
				}
			],
			"stateMutability": "view",
			"type": "function"
		},
		{
			"inputs": [],
			"name": "u_erc20",
			"outputs": [
				{
					"internalType": "contract IERC20",
					"name": "",
					"type": "address"
				}
			],
			"stateMutability": "view",
			"type": "function"
		},
		{
			"inputs": [
				{
					"internalType": "address",
					"name": "addr",
					"type": "address"
				}
			],
			"name": "userInfo",
			"outputs": [
				{
					"internalType": "uint128",
					"name": "",
					"type": "uint128"
				},
				{
					"internalType": "uint128",
					"name": "",
					"type": "uint128"
				},
				{
					"internalType": "uint128",
					"name": "",
					"type": "uint128"
				},
				{
					"internalType": "uint128",
					"name": "",
					"type": "uint128"
				},
				{
					"internalType": "uint128",
					"name": "",
					"type": "uint128"
				},
				{
					"internalType": "uint128",
					"name": "",
					"type": "uint128"
				}
			],
			"stateMutability": "view",
			"type": "function"
		},
		{
			"inputs": [
				{
					"internalType": "address",
					"name": "",
					"type": "address"
				}
			],
			"name": "users",
			"outputs": [
				{
					"internalType": "address",
					"name": "upline",
					"type": "address"
				},
				{
					"internalType": "uint128",
					"name": "totalPayAmount",
					"type": "uint128"
				},
				{
					"internalType": "uint128",
					"name": "totalStakeAmount",
					"type": "uint128"
				},
				{
					"internalType": "uint128",
					"name": "adaptAmount",
					"type": "uint128"
				},
				{
					"internalType": "uint128",
					"name": "lastAdaptTime",
					"type": "uint128"
				},
				{
					"internalType": "uint128",
					"name": "withdrawnAmount",
					"type": "uint128"
				},
				{
					"internalType": "uint128",
					"name": "withdrawnPay",
					"type": "uint128"
				},
				{
					"internalType": "uint128",
					"name": "refReward",
					"type": "uint128"
				}
			],
			"stateMutability": "view",
			"type": "function"
		}
	]
}
export {payAbi}